<include file="Order:leftmenu" />
<link rel="stylesheet" href="__STATIC__admin/css/order.css">
<script src="__STATIC__admin/js/laydate/laydate.js"></script>

<script src="__STATIC__mobile/js/areadata.js"></script>
<script src="__STATIC__mobile/js/myarea.js"></script>
<script src="__STATIC__mobile/js/expressdata.js"></script>

<object id="CaiNiaoPrint_OB" classid="clsid:09896DB8-1189-44B5-BADC-D6DB5286AC57" width=0 height=0> 
	<embed id="CaiNiaoPrint_EM" TYPE="application/x-cainiaoprint" width=0 height=0  ></embed>
</object> 

<object id="CaiNiaoPrint_OB_2" classid="clsid:09896DB8-1189-44B5-BADC-D6DB5286AC57" width=0 height=0> 
  <param name="Caption" value="内嵌显示区域">
  <param name="Border" value="1">
  <param name="Color" value="#C0C0C0">
  <embed id="CaiNiaoPrint_EM_2" TYPE="application/x-cainiaoprint" width=0 height=0>
</object> 

<div class="content-right fl">
	<h1 class="content-right-title">
		销售统计
	</h1>
	<form action="" method="get" id="searchForm">
		<div class="tables-searchbox">发货时间
			<input type="text" name="start_create_time" id="start_create_time" value="<?php echo get('start_create_time')?get('start_create_time'):$data["start"];?>" placeholder="订单发货起始时间" class="input  newinput">
			 <span class="mgr5">至</span> 
			 <input type="text" name="end_create_time" id="end_create_time" value="<?php echo get('end_create_time')?get('end_create_time'):$data["end"];?>" placeholder="订单发货结束时间" class="input  newinput" > 
			
		</div>
            <div class="tables-searchbox">付款时间
			<input type="text" name="start_pay_time" id="start_pay_time" value="<?php echo get('start_pay_time')?get('start_pay_time'):$data["start_pay"];?>" placeholder="订单付款起始时间" class="input  newinput">
			 <span class="mgr5">至</span> 
			 <input type="text" name="end_pay_time" id="end_pay_time" value="<?php echo get('end_pay_time')?get('end_pay_time'):$data["end_pay"];?>" placeholder="订单付款结束时间" class="input  newinput" > 
			
		</div>
            <div class="tables-searchbox"> 收货地区：
			<select id="province" name="province" style="width:200px;"></select>
                        <select id="city" name="city" style="width:200px;"></select>
                        <select id="county" name="county" style="width:200px;"></select>
                      
                        
		</div>
            <div class="tables-searchbox"> 
                        <button class="btn btn-primary vtal-2">
				<i class="gicon-search white"></i>查询
			</button>
			<a href="/admin/order/tongji" class="btn btn-warning vtal-2">清除查询</a>
		</div>
		
	</form>
	

	    <table class="wxtables">
         	<colgroup>
         		<col width="3%">
               <col width="6%">
               <col width="6%">
                <col width="6%">
                
            </colgroup>
            <thead>
            <tr>
                <td>编号</td>
                <td>商品名称</td>
                <td><?=$data["date"]?></td>         
                <td>现有库存</td>
                
            </tr>
            </thead>
            <tbody id="trAccount">
			
				<volist name="goodslist" id="vo">
				<tr>
				<td>{$vo.goods_bianhao}</td>
                <td>{$vo.goods_name}</td>
                <td><?=$vo['salenum']?$vo['salenum']:0?></td>                
                <td>{$vo.stock}</td></tr>
				</volist>
				
			</tbody>
        </table>
	



	



</div>
<script>
city.getcity('province','city','county','<?php echo $delivery['province'];?>','<?php echo $delivery['city'];?>','<?php echo $delivery['county'];?>',1);

var start = {
    elem: '#start_create_time',
    format: 'YYYY-MM-DD hh:mm:ss',
    min: '2015-11-01 00:00:00', //设定最小日期
    max: laydate.now(), //最大日期为当前日期
    istime: true,
    istoday: false,
    choose: function(datas){
         end.min = datas; //开始日选好后，重置结束日的最小日期
         end.start = datas //将结束日的初始值设定为开始日
    }
};
var end = {
    elem: '#end_create_time',
    format: 'YYYY-MM-DD hh:mm:ss',
    min: '2015-11-01 00:00:00', //设定最小日期
    max: laydate.now(),
    istime: true,
    istoday: false,
    choose: function(datas){
        start.max = datas; //结束日选好后，重置开始日的最大日期
    }
};

var start_pay = {
    elem: '#start_pay_time',
    format: 'YYYY-MM-DD hh:mm:ss',
    min: '2015-11-01 00:00:00', //设定最小日期
    max: laydate.now(), //最大日期为当前日期
    istime: true,
    istoday: false,
    choose: function(datas){
         end.min = datas; //开始日选好后，重置结束日的最小日期
         end.start = datas //将结束日的初始值设定为开始日
    }
};
var end_pay = {
    elem: '#end_pay_time',
    format: 'YYYY-MM-DD hh:mm:ss',
    min: '2015-11-01 00:00:00', //设定最小日期
    max: laydate.now(),
    istime: true,
    istoday: false,
    choose: function(datas){
        start.max = datas; //结束日选好后，重置开始日的最大日期
    }
};
laydate(start);
laydate(end);
laydate(start_pay);
laydate(end_pay);
</script>